package com.hyl.utils;

import com.hyl.IElement;

/**
 * @description:
 * @author: molar
 * @date: Created in 2020/6/7 10:32
 * @version:
 * @modified By:
 */
public abstract class Graphi implements IElement {
    private Point firstPoint;
    private Point secondPoint;
    private Point middlePoint;

    public Graphi() {
    }

    public Graphi(Point firstPoint, Point secondPoint) {
        this.firstPoint = firstPoint;
        this.secondPoint = secondPoint;
    }

    public Graphi(Point middlePoint) {
        this.middlePoint = middlePoint;
    }

    public Point getFirstPoint() {
        return firstPoint;
    }

    public void setFirstPoint(Point firstPoint) {
        this.firstPoint = firstPoint;
    }

    public Point getSecondPoint() {
        return secondPoint;
    }

    public void setSecondPoint(Point secondPoint) {
        this.secondPoint = secondPoint;
    }

    public Point getMiddlePoint() {
        return middlePoint;
    }

    public void setMiddlePoint(Point middlePoint) {
        this.middlePoint = middlePoint;
    }
}
